import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	coffee_list: apix + '/talent/coffee/list',
	coffee_export: apix + '/talent/coffee/export',
	talent_coffee: apix + '/talent/coffee/',
	// talent_coffee: apix + '/talent/coffee',
	talent_coffeeIds: apix + '/talent/coffee/',
}

//查询咖啡活动
export function coffeeList(page) {
	return request.get(api.coffee_list, {
		...page
	})
}
//导出咖啡活动
export function coffeeExport(obj) {
	return request.post(api.coffee_export, {
		...obj
	})
}
//获取咖啡活动活动与信息
export function coffeeId(id) {
	return request.get(api.talent_coffee + id)
}
//新增活动
export function addcoffee(obj) {
	return request.post(api.talent_coffee, {
		...obj
	})
}
//修改活动
export function putcoffee(obj) {
	return request.put(api.talent_coffee, {
		...obj
	})
}
//删除活动
export function delcoffee(id) {
	return request.delete(api.talent_coffee + id)
}